package com.company.practice;

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

public class Cat extends Animal implements pet {
    public String name;

    protected Cat(int legs, String name){
        super(legs);
        this.name = name;
    }

    protected Cat(){
        this(4, "");
    }

    @Override
    public void eat(){};

    @Override
    public void walk(){}

    @Override
    public String getName(){
        return this.name;
    };

    @Override
    public void setName(String name){
        this.name = name;
    };

    @Override
    public void play(){
        System.out.println("玩耍");
    }


}
